﻿using System;

namespace EmptyWallGallery.FrontEnd.inside.Editor.Gallery
{
    public partial class CreateAlbum : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtnCreateClick(object sender, EventArgs e)
        {
            if (txtAlbumName.Text.Length <= 1) return;

            Core.BLL.Album.Instance.Create(Core.Utilities.Common.Instance.NoHtml(txtAlbumName.Text), Server.HtmlEncode(txtDesc.Text), "");

            Response.Redirect("Album.aspx");
        }
    }
}